<#include "/lib/macro-lib.ftl"/>

<html>
<head>
<title>管理系统</title>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
</head>
<script language="JavaScript">
function saveSystem() {
	$('#ltjcForm').form('submit',{  
	    url:'ltjcpzact.do',
	    onSubmit:function(param){
	        return $(this).form('validate');  
	    },  
	    success:function(data){
			$.messager.alert('提示',data,'info',function(){
		    	window.location.reload(true);
			});
			
	    }  
	});
}
function resetForm(){
	$('#sitename').val('${obj.sitename!}');
	$('#xpurl').val('${obj.xpurl!}');
	$('#email').val('${obj.email!}');
	$('#qq').val('${obj.qq!}');
	$('#copyright').val('${obj.copyright!}');
	$('#address').val('${obj.address!}');
	$('#zip').val('${obj.zip!}');
	$('#tel').val('${obj.tel!}');
	$('#themes').val('${obj.themes!}');
	$('#version').val('${obj.version!}');
	$('#showtip').val('${obj.showtip!}');
	$('#checkemail').val('${obj.checkemail!}');
	$('#pageList').val('${obj.pageList!}');
	setValue();
}
function setValue(){
	$('#shownum').combobox('setValue', '${obj.shownum!}');
	$('#adminnum').combobox('setValue', '${obj.adminnum!}');
	$('#pageSize').combobox('setValue', '${obj.pageSize!}');
}
</script>
<body topmargin="0">
<div align="center">
  <table border="1" width="90%" cellpadding="0" cellspacing="0" align="center" style=" margin-top:10px; border-collapse: collapse; border:#ccc 1px solid;">
    <form align="center"  method="POST" enctype='multipart/form-data' id="ltjcForm">
      <tr>
      <tr><td  class="td_title" colspan="4" height="30" align="center" valign="middle"><span align="center" class="smallFont">论坛变量设置：</span></td></tr>
             <tr>
             <td class="td_table_1" width="15%" height="30" align="right" valign="middle"><span class="smallFont">论坛名称：</span></td>
        <td class="td_table_2" width="35%" height="30"><div align="left">&nbsp;
            <input name="forumname" size="26" class="smallInput" maxlength="20"  title="" value="${obj.forumname}" >
            </div></td>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">论坛的URL：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="forumurl" size="26" class="smallInput" maxlength="20"  title="" value="${obj.forumurl}">
            </div></td>
      </tr>
        <tr>
         <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">主页名称：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
     <input name="companyname" size="26" class="smallInput" maxlength="20"  title="" value="${obj.companyname}">
          </td>
        <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">主页URL：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="hosturl" size="26" class="smallInput" maxlength="20"  title="" value="${obj.hosturl}">
          </select>
          </td>
      </tr>
               <tr>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">SMTP Server地址：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="smtpserver" size="26" class="smallInput" maxlength="20"  title="" value="${obj.smtpserver}">
           <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">论坛管理员Email：</span></td>
        <td class="td_table_2" colspan="3" height="30"><div align="left">&nbsp;
            <input name="systememail" size="26" class="smallInput" maxlength="20"  title="" value="${obj.systememail}">
            </div></td>
      </tr>
       <tr>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">论坛forumLogo地址：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
            <input name="logo" size="26" class="smallInput" maxlength="20"  title="" value="${obj.logo}">
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">论坛图片目录：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
            <input name="picurl" size="26" class="smallInput" maxlength="20"  title="" value="${obj.picurl}">
            </div></td>
      </tr>
       <tr>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">论坛表情地址：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
            <input name="faceurl" size="26" class="smallInput" maxlength="20"  title="" value="${obj.faceurl}">
           
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">贴子上传图片：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
           <select name="uploadPic">
			<option value="0" >否 
			<option value="1" >是 
			</select>
            </div></td>
      </tr>
       <tr>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">用户IP：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
           <select name="ipFlag">
			<option value="0" >保密 
			<option value="1" >公开 
			</select>&nbsp;* 管理员及版主完全公开
           
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">用户来源：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
            <select name="fromFlag">
			<option value="0" >保密 
			<option value="1" >公开 
			</select>&nbsp;* 管理员及版主完全公开
            </div></td>
      </tr>
      <tr>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">头像上传：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
           <select name="uploadFlag">
			<option value="0" >否 
			<option value="1" >是 
			</select>
            
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">用户头衔：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
            <select name="titleFlag">
		<option value="0" >隐藏 
		<option value="1" >显示 
		</select>
            </div></td>
      </tr>
      <tr>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">在线名单显示客人在线：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
           <select name="guestUser">
			<option value="0" >否 
			<option value="1" >是 
			</select>
                    <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">有新的短消息弹出窗口：</span></td>
        <td class="td_table_2"  height="30"><div align="left">&nbsp;
            <select name="openMSG">
			<option value="0" >否 
			<option value="1" >是 
			</select>
            </div></td>
      </tr>
      <tr><td  class="td_title" colspan="4" height="30" align="center" valign="middle"><span align="center" class="smallFont">关于帖子设置：</span></td></tr>
      <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">帖子内容最大的字节数：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="announcemaxbytes" size="26" class="smallInput" maxlength="20"  title="" value="${obj.announcemaxbytes}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">每页显示最多纪录：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="maxannounceperpage" size="26" class="smallInput" maxlength="20"  title="" value="${obj.maxannounceperpage}">
          </td>
      </tr>
       <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">浏览贴子每页显示贴子数：</span></td>
        <td class="td_table_2" colspan="3" height="30"><div align="left">&nbsp;
            <input name="maxtitlelist" size="26" class="smallInput" maxlength="20"  title="" value="${obj.maxtitlelist}">
            </div></td>
      </tr>
      <!-- 
      
       <tr><td  class="td_title" colspan="4" height="30" align="center" valign="middle"><span align="center" class="smallFont">关于颜色字体设置（应用于除显示版面以外的页面，包括首页）：</span></td></tr>
      <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">表格背景(边框颜色)1
一般页面：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="tablebackcolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablebackcolor}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">表格背景(边框颜色)2
用户页面、提示页面：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="tablebackcolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablebackcolor}"  >
          </td>
      </tr>
       <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">标题表格颜色1
一般页面：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="tabletitlecolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tabletitlecolor}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">标题表格颜色2
用户页面、提示页面：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="tabletitlecolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tabletitlecolor}">
          </td>
      </tr>
            <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">表格体颜色1：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="tablebodycolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablebodycolor}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">表格体颜色2(1和2颜色在首页显示中穿插)：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="tablebodycolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablebodycolor}">
          </td>
      </tr>
          <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">表格内文字标题颜色：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="tablefontcolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablefontcolor}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">表格内文字内容颜色：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="tablefontcolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablefontcolor}">
          </td>
      </tr>
         <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">警告提醒语句的颜色：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="alertfontcolor" size="26" class="smallInput" maxlength="20"  title="" value="${obj.alertfontcolor}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">相关帖子，转发帖子，回复等的颜色：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="contenttitle" size="26" class="smallInput" maxlength="20"  title="" value="${obj.contenttitle}">
          </td>
      </tr>
             <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">默认背景图片：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="bodybgimage" size="26" class="smallInput" maxlength="20"  title="" value="${obj.bodybgimage}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">默认页面宽度：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="tablewidth" size="26" class="smallInput" maxlength="20"  title="" value="${obj.tablewidth}">
          </td>
      </tr>
        <tr><td  class="td_title" colspan="4" height="30" align="center" valign="middle"><span align="center" class="smallFont">版权广告信息（HTML代码不要有双引号）：</span></td></tr>
     <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">论坛页首广告代码：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="ads1" size="26" class="smallInput" maxlength="20"  title="" value="${obj.ads1}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">论坛页尾广告代码：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="ads2" size="26" class="smallInput" maxlength="20"  title="" value="${obj.ads2}">
          </td>
      </tr>
      <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">版权信息：</span></td>
        <td class="td_table_2" height="30"><div align="left">&nbsp;
            <input name="copyright" size="26" class="smallInput" maxlength="20"  title="" value="${obj.copyright}">
            </div></td>
              <td class="td_table_1" width="15%" height="30" align="right"><span class="smallFont">版本信息：</span></td>
        <td class="td_table_2" width="35%" height="30">&nbsp;
         <input name="VERSION" size="26" class="smallInput" maxlength="20"  title="" value="${obj.VERSION}">
          </td>
      </tr>
      <tr>
        <td class="td_table_1" height="30" align="right" valign="middle"><span class="smallFont">注册成功系统短消息内容：</span></td>
        <td class="td_table_2" cosplan="3" height="30"><div align="left">&nbsp;
            <input name="regmsg" size="26" class="smallInput" maxlength="20"  title="" value="${obj.regmsg}">
            </div></td>
      </tr>
       -->
     	<tr align="center" height="35"> 
	<td colspan="4" height="25">
		<input type="button" class="button_70px" onclick="saveSystem();" value="保存">  
        <!-- <input type="button" class="button_70px" type="resetForm();" value="重置"> --> 
 	</td>
	</tr>
    </form>
  </table>
  </center>
</div>
</body>
</html>